#include "segysettingdialog.h"
#include "ui_segysettingdialog.h"

SegySettingDialog::SegySettingDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::SegySettingDialog)
{
    ui->setupUi(this);
}

SegySettingDialog::~SegySettingDialog()
{
    delete ui;
}


void SegySettingDialog::on_pushButton_Commit_clicked()
{
    QDialog::accept();
}

void SegySettingDialog::on_pushButton_Cancel_clicked()
{
    QDialog::reject();
}
void SegySettingDialog::setTrace(int trace)
{
    ui->textEdit_Trace->setText(QString::number(trace));
}
void SegySettingDialog::setTime(int time)
{
    ui->textEdit_Time->setText(QString::number(time));
}
int SegySettingDialog::getTrace()
{
    return ui->textEdit_Trace->toPlainText().toInt();
}
int SegySettingDialog::getTime()
{
    return ui->textEdit_Time->toPlainText().toInt();
}
